home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: SOM & Streams
- Sent: 7/2/96 7:26 AM
- Received: 7/3/96 9:22 AM
- From: Scott Daniels, scottdfl@sprynet.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- Mark,
-
- Okay, I think I understand now. Both this wrapper class and the refcounted
- wrapper serve the same purpose: automatic garbage collection. The
- difference is that there is only one owner in the first case as you
- already stated. Thanks again for the info.
-
- Scott
-
- ----------
- > From: Mark Lanett <mlanett@meer.net>
- > To: OpenDoc Development Framework Discussion List
- <ODF-Interest@CILabs.ORG>
- > Subject: Re: SOM & Streams
- > Date: Monday, July 01, 1996 1:28 PM
- >
- > At 6:32 AM 7/1/96, Scott Daniels wrote:
- > >Mark,
- > >
- > >Thanks for the info, I have enough to go on now. However, I am still
- > >puzzled as to why the wrapper class is needed, and why there can be
- only
- > >one? How does this work & why?
- >
- > The wrapper class is not needed; you can create a SOM object and call it
- > directly if you wish.
- >
- > There can be only one precisely because FW_OSink is *not* reference
- > counted. Someone needs to own it; if you create it directly then you own
- it
- > and are responsible for destroying it. If you create a
- FW_PRandomAccessSink
- > subclass, then that object owns it. Why would you want to have multiple
- > wrapper objects?
- >
- > markl
- >
- > --
- > Mark Lanett, OpenDoc Framework, Apple Computer
-